package mianshi;

import java.io.IOException;

/**
 * TOOD
 *
 * @author long
 * @date 2020-08-08 18:43
 */
public class translate {
    public static String translate(String str){
        String tempStr="";
        try {
            tempStr=new String(str.getBytes("iso8859-1"),"UTF-8");
            tempStr=tempStr.trim();
        }catch (Exception e){
            e.printStackTrace();
        }
        return tempStr;
    }

    public static void main(String[] args) {
        final String translate = translate("你好吗");
        System.out.println(translate);
    }
}
